//
//  Kratos_LongZhuLogin.m
//  kratos_framework_Example
//
//  Created by 7yao.top on 2018/10/25.
//  Copyright © 2018年 kratos_framework. All rights reserved.
//

#import "Kratos_LongZhuLogin.h"
#import "k_const.h"
#import "Kratos_longzhuloginView.h"
#import "Kratos_AccountLoginPersenter.h"
#import "Kratos_MenuViewController.h"
#import "Kratos_FloatWindow.h"

@interface Kratos_LongZhuLogin ()
@property (nonatomic,strong) Kratos_AccountLoginPersenter * Kra_presenter;

@end

@implementation Kratos_LongZhuLogin

- (Kratos_longzhuloginView *)Kra_accountView
{
    if (_Kra_accountView == nil)
    {
        _Kra_accountView = [[Kratos_longzhuloginView alloc] init];
        _Kra_accountView.backgroundColor = [UIColor whiteColor];
        [self.view addSubview:_Kra_accountView];
    }
    return  _Kra_accountView;
}


- (void)viewDidLoad {
    [super viewDidLoad];

//    self.view.backgroundColor = [UIColor whiteColor];
    [self.Kra_coverView addSubview:self.Kra_accountView];

    
    [self accountViewLayout];
    [self.Kra_presenter Kratos_usageLogic];
    
}

- (Kratos_AccountLoginPersenter *)Kra_presenter
{
    if (_Kra_presenter == nil) {
        _Kra_presenter = [[Kratos_AccountLoginPersenter alloc] initWithView:self.Kra_accountView];
        [_Kra_presenter setViewController:self];
    }
    return _Kra_presenter;
}

- (void)accountViewLayout
{
    layoutView(self.Kra_accountView)
}



- (void)doRotateAction:(NSNotification *)notification {
    [self accountViewLayout];
}

- (void)dealloc
{
    [[NSNotificationCenter defaultCenter]removeObserver:self];
    kLog(@" %@delloc",self);
}




@end
